package com.jewelry.common.util;

import java.text.DecimalFormat;
import java.util.Date;

/**
 * 序列号生成类
 * 
 * @author zheng
 * 
 */
public class SequenceUtil {

	public static String getSeq(int seq) {
		String curDate = StringUtils.formatDate(new Date(), 
				"yyyyMMdd");
		String seqString = new DecimalFormat("0000").format(seq);
		return curDate + seqString;
	}
	
	public static void main(String[] args){
		System.out.println(getSeq(1));
	}
}
